package com.grantheath.erebus.model 
{
	import com.grantheath.erebus.model.enum.notifications.ErebusInitializationNotifications;
	import com.grantheath.erebus.model.enum.names.ErebusProxyNames;
	import com.grantheath.erebus.model.interfaces.IErebusPreferencesProxy;

	import org.puremvc.as3.patterns.proxy.Proxy;

	/**
	 * @author grantheath
	 */
	public class ErebusPreferencesProxy extends Proxy implements IErebusPreferencesProxy 
	{
		private var _initialized : Boolean;
		
		public function ErebusPreferencesProxy()
		{
			super(ErebusProxyNames.PREFERENCES_PROXY);
			_initialized = true;
		}

		override public function onRegister() : void
		{
			sendNotification(ErebusInitializationNotifications.INITIALIZE_PROXIES);
		}

		//GETTERS AND SETTERS
		public function get preloaderDelay() : Number
		{
			return 250;
		}
		
		public function get initialized() : Boolean
		{
			return _initialized;
		}
	}
}
